export default ({ request }) => ({
  /**
   * 获取计划树形数据
   * @returns 
   */
  GET_PLAN_TREE() {
    return request({ url: "/budwk/smartlc/lc/planmng/tree" });
  },
  /**
   * 添加计划
   * @param {*} data 
   * @returns 
   */
  ADD_PLAN(data) {
    return request({
      url: "/budwk/smartlc/lc/planmng/create",
      method: "post",
      data: data,
    });
  },
  /**
   * 修改计划
   * @param {*} data 
   * @returns 
   */
  EDIT_PLAN(data) {
    return request({
      url: "/budwk/smartlc/lc/planmng/update",
      method: "post",
      data: data,
    });
  },
});
